package com.scrcu.cloud.wechat.home.endpoint.customer.exception;

public class MessageSupport implements Messageable {
    private String defaultMessage = "uid长度异常";
    private String messageKey = "uid长度";
    private Object[] args = new Object[0];

    public void setArgs(Object[] var){
        this.args = var;
    }

    public void setMessageKey(String var){
        this.messageKey = var;
    }

    public void setDefaultMessage(String var){
        this.defaultMessage = var;
    }

    @Override
    public String getDefaultMessage() {
        return this.defaultMessage;
    }
    @Override
    public boolean hasDefaultMessage() {
        return this.defaultMessage != null;
    }

    @Override
    public String getMessageKey() {
        return this.messageKey;
    }

    @Override
    public Object[] getArgs() {
        return this.args;
    }
}
